package com.ruoyi.center.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.center.mapper.ExpertCommitteeMapper;
import com.ruoyi.center.domain.ExpertCommittee;
import com.ruoyi.center.service.IExpertCommitteeService;

/**
 * 专家委员会Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-08
 */
@Service
public class ExpertCommitteeServiceImpl implements IExpertCommitteeService 
{
    @Autowired
    private ExpertCommitteeMapper expertCommitteeMapper;

    /**
     * 查询专家委员会
     * 
     * @param id 专家委员会主键
     * @return 专家委员会
     */
    @Override
    public ExpertCommittee selectExpertCommitteeById(Long id)
    {
        return expertCommitteeMapper.selectExpertCommitteeById(id);
    }

    /**
     * 查询专家委员会列表
     * 
     * @param expertCommittee 专家委员会
     * @return 专家委员会
     */
    @Override
    public List<ExpertCommittee> selectExpertCommitteeList(ExpertCommittee expertCommittee)
    {
        return expertCommitteeMapper.selectExpertCommitteeList(expertCommittee);
    }

    /**
     * 新增专家委员会
     * 
     * @param expertCommittee 专家委员会
     * @return 结果
     */
    @Override
    public int insertExpertCommittee(ExpertCommittee expertCommittee)
    {
        return expertCommitteeMapper.insertExpertCommittee(expertCommittee);
    }

    /**
     * 修改专家委员会
     * 
     * @param expertCommittee 专家委员会
     * @return 结果
     */
    @Override
    public int updateExpertCommittee(ExpertCommittee expertCommittee)
    {
        return expertCommitteeMapper.updateExpertCommittee(expertCommittee);
    }

    /**
     * 批量删除专家委员会
     * 
     * @param ids 需要删除的专家委员会主键
     * @return 结果
     */
    @Override
    public int deleteExpertCommitteeByIds(Long[] ids)
    {
        return expertCommitteeMapper.deleteExpertCommitteeByIds(ids);
    }

    /**
     * 删除专家委员会信息
     * 
     * @param id 专家委员会主键
     * @return 结果
     */
    @Override
    public int deleteExpertCommitteeById(Long id)
    {
        return expertCommitteeMapper.deleteExpertCommitteeById(id);
    }
}
